package main;

import java.awt.Font;

import javax.swing.JLabel;
import javax.swing.JPanel;

public class ScorePanel extends JPanel {
	private int score = 0;
	private JLabel scoreLabel;

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
		scoreLabel.setText("Score : " + score);
	}

	public ScorePanel() {
		super();
		scoreLabel = new JLabel("Score :");
		scoreLabel.setFont(new Font("TimesRoman", 20, 20));
		this.add(scoreLabel);
	}
}
